var setting = {
    async: {
        enable: true, //是否异步,
        type: "POST",
        url: baseURL + "areainfos/areainfos/queryByParentId",
        autoParam: ["columnid"], //传的参数
        dataFilter:ajaxDataFilter,
        dataType:"json"
    },
    view: {
        expandSpeed: "",
        selectedMulti: false,
        showIcon: true,
        showLine: true,
    },
    edit: {
        enable: false
    },
    data: {
        simpleData: {
            enable: true,
            idKey: "columnid",
            pIdKey: "parentid",
            rootPId: 1
        },
        key: {
            name:"areaname"
        }
    }
};

var treeObj = $.fn.zTree.init($("#menuTree"), setting);

function ajaxDataFilter(treeId, parentNode, responseData) {
    var data = responseData.areainfosList;
    return data;
}
